﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using Microsoft.Phone.Controls;

namespace TM.QWeibo.Client.UserControls
{
    public class HubTileButton:Button
    {
        public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(ImageSource), typeof(HubTileButton), null);

        public HubTileButton()
            : base()
        {
            DefaultStyleKey = typeof(HubTileButton);
            this.SetValue(TiltEffect.IsTiltEnabledProperty,true);
        }

        [Description("The image displayed by the button in dark theme (and in normal mode)"), Category("Common Properties")]
        public ImageSource Image
        {
            get { return (ImageSource)GetValue(ImageProperty); }
            set { SetValue(ImageProperty, value); }
        }
    }
}
